<?php

	class GoodsController extends  BaseController{

		protected  $_className ="GoodsCategory";

		public function getGoodsList($filter =null,$keyword=null,$state = null){

			if( $keyword!=null){
				$filter = new SqlFilter();
				$filter->addExpress("(a.code like '%".$keyword."%' or b.name like '%".$keyword."%' or c.name like '%".$keyword."%')");
			}
			return parent::getEntityList($filter,$state);
		}
	}

?>